function structTarget=replaceNames(structTarget,structSource) 
% Given the structure *struct* replace the fields 
% listed in *structSource* with the assignment in *structSource* 
% fields in *structSource* not found in *struct* will only deliver a warning 
% Example 
% par.rho='rho';
% replacePar.rho='\\rho'; 
% then par.rho='\\rho'; 
%fieldsTarget=fieldnames(structTarget); 
fieldsSource=fieldnames(structSource); 
for ii=1:length(fieldsSource); 
    fldnm=fieldsSource{ii}; 
    if isfield(structTarget,fldnm)==true 
        structTarget.(fldnm)=structSource.(fldnm); 
    else 
        disp(['No match for field ',fldnm]); 
    end 
end 
        
    
